package com.jnxx.okr.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jnxx.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 实体类：
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Renew extends BaseDomain{

    private Long staffId;
    private String staffName;
    private String avatar;
    /**
     * 内容
     */
    private String content;
    private Long okrId;
    private Long parentId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date creatTime = new Date();


    public Long getStaffId() {
        return staffId;
    }

    public void setStaffId(Long staffId) {
        this.staffId = staffId;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getOkrId() {
        return okrId;
    }

    public void setOkrId(Long okrId) {
        this.okrId = okrId;
    }


    @Override
    public String toString() {
        return "Renew{" +
        ", staffId=" + staffId +
        ", staffName=" + staffName +
        ", avatar=" + avatar +
        ", content=" + content +
        ", okrId=" + okrId +
        ", creatTime=" + creatTime +
        "}";
    }
}
